<style type="text/css">
    .task1 p{ color: red;font-size: 12px;}
    .task1 span{color:red;}
</style>
<div class="task1">
    <?php
    if ($this->session->userdata('ms_error')) {
        echo message($this->session->userdata('ms_error'), "error");
        $this->session->unset_userdata("ms_error");
    }
    echo form_open('class_manager/add');
    echo '<div class="form-wrapper">';
    echo '<fieldset style="margin: 0px auto; width:60%; height: auto; border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">';
    echo '<legend align="center" style="margin: 0px auto;"><div class="heading" style="margin: 0 auto;width: 100%;height: auto;border: 0px #ccc solid;text-align: center;font-size: 20px;color:#006600;">Add New Class</div></legend>';
    echo '<div style="float: right; border: 0px #ccc solid;">';
    echo anchor('class_manager/manager', img('images/user_images/cancel.png'));
    echo '</div>';
    echo '<table  align="center">';
    echo '<tr>';
    echo '<td valign="top">Class Name<span>*</span>:</td>';
    echo '<td>' . form_input(array('name' => 'txtclassname', 'value' => $this->input->post("txtclassname") ? $this->input->post("txtclassname") : " ")) . form_error('txtclassname') . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td align="left">Detail:</td>';
    echo '<td> ' . form_textarea(array('name' => 'txtdetail', 'rows' => '8', 'cols' => '50', 'value' => $this->input->post("txtdetail") ? $this->input->post("txtdetail") : " ")) . form_error('txtdetail') . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td></td>';
    echo '<td>' . form_submit('btn_submit', 'Add') . form_reset('btn_reset', 'Reset') . '</td>';
    echo '</tr>';
    echo '</table>';
    echo '</fieldset>';
    echo '</div>';
    echo form_close();
    ?>
</div>